#ifndef  xd3dMeshManager_h_h_h_h
#define  xd3dMeshManager_h_h_h_h


#include "xMeshManager.h"
#include "d3d9Mesh.h"

namespace XE
{



	class xd3dMeshManager :public xMeshManager
	{


	public:

		xd3dMeshManager( LPDIRECT3DDEVICE9 m_pDevice );
		~xd3dMeshManager();


	

		virtual  xMeshPtr	 CreateMeshByxMesh(LPD3DXMESH pMesh);

	protected:

	//	xResource* CreateResourceImplement(const xString& name,const xString& fileName);
	//	xResource* CreateResourceImplementFromMemory(const xString& name, const char* pBuffer,UINT size);

	//	xResource* CreateResoureImplementfromPara(const xResourceCreateParameter* para);

		xResourcePtr CreateResourceImplement(const xString& name){return xMeshPtr(new xd3d9Mesh(name,GetNextHandle(),m_pDevice));}


		LPDIRECT3DDEVICE9 m_pDevice;




	};

	



}


#endif